
lst = [20, 90, 30, 35, 66, 88, 99, 23, 28, 65]

# 插入排序
for i in range(1, len(lst)):
    a = i
    for j in range(i-1, -1, -1):
        if lst[i]<lst[j]:
            a = j
        else:
            break
    value = lst[i]
    lst.pop(i)
    lst.insert(a, value)

print(lst)
